package cn.wp.ewallet.wallet.web.controller;

import cn.wp.common.core.Wp;
import cn.wp.common.core.dto.WpResult;
import cn.wp.ewallet.wallet.service.ServiceChargeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yangjin on 2020/2/5
 */
@RestController
@RequestMapping(Wp.WebContext + "/ewallet/wallet/serviceCharge")
@Api(tags="手续费信息")
public class ServiceChargeController {

    @Autowired
    private ServiceChargeService serviceChargeService;

    @GetMapping("/getStatInfo")
    @ApiOperation(value = "手续费信息统计")
    public WpResult getStatInfo(){
        return new WpResult().success(serviceChargeService.getStatInfo());
    }

    @GetMapping("/getServiceChargeStatInfo")
    @ApiOperation(value = "手续费趋势图信息")
    public WpResult getServiceChargeStatInfo(String year, String month){
        return new WpResult().success(serviceChargeService.getServiceChargeStatInfo(year, month));
    }



}
